# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=opencore-amr
pkgver=0.1.5
pkgrel=0
pkgdesc="Implementation of Adaptive Multi Rate speech codec"
url="https://sourceforge.net/projects/opencore-amr"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/sourceforge/opencore-amr/opencore-amr-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c324db9dcac5a31bfac633153bc054bfe42d5ff98202c4adb3c75a3fae9792f07f60d48cd659acf106dacd307174a62b2aeee22a4af53caa20d2bfba46488faf  opencore-amr-0.1.5.tar.gz
"
